import request from '@/utils/request'

// 查询商铺出售列表
export function listShopsale(query) {
  return request({
    url: '/business/shopsale/list',
    method: 'get',
    params: query
  })
}

// 查询商铺出售详细
export function getShopsale(id) {
  return request({
    url: '/business/shopsale/' + id,
    method: 'get'
  })
}

// 新增商铺出售
export function addShopsale(data) {
  return request({
    url: '/business/shopsale',
    method: 'post',
    data: data
  })
}

// 修改商铺出售
export function updateShopsale(data) {
  return request({
    url: '/business/shopsale',
    method: 'put',
    data: data
  })
}

// 删除商铺出售
export function delShopsale(id) {
  return request({
    url: '/business/shopsale/' + id,
    method: 'delete'
  })
}
